package com.itheima.myextends.test_abstract;

public abstract class Animal {

    /*Animal animal = new Animal() {
        @Override
        public void eat() {

        }
    };*/

//  构造方法
    public Animal(){

    }

    public void drink(){
        System.out.println("喝水");
    }

    public abstract void eat();
}
